NeedSpace
TheNeedSpace
method is called to notify this storage system to reserve memory for future use.
void NeedSpace (in ODSize memSize, in ODBoolean doPurge);
memSize
- The size of the memory block desired, expressed as an unsigned 32-bit value.
doPurge
kODTrue
if this operation should trigger thePurge
method to obtain the requested memory, otherwisekODFalse
.DISCUSSION
Your part can call this method when it anticipates the need for a large memory block. This method is not guaranteed to generate the memory requested and should be used with caution as it may be a slow operation.If memory cannot be allocated and the
doPurge
parameter is true, then this method calls thePurge
method associated with this storage system's container objects (and transitively its document objects, draft objects, and storage-unit objects).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help